from dataclasses import dataclass


@dataclass(order=True)
class Student:
    name: str
    age: int


s_1 = Student("tony", 18)
s_2 = Student("jack", 19)

students = [s_1, s_2]
students.sort()
print(students)
